package com.panda.takeaway.service;

import com.panda.takeaway.entity.dto.CommonResult;
import com.panda.takeaway.entity.vo.BySchQueryVo;
import com.panda.takeaway.entity.vo.PageInfoVo;
import com.panda.takeaway.entity.vo.ShopInfoVo;

/**
 * @author John
 * @create 2021-08-06-12:06
 */

public interface ShopService {

    /**
     * 商家创建店铺
     * @param shop
     * @return
     */
    CommonResult<?> addShop(ShopInfoVo shop);

    /**
     * 商家修改店铺信息
     * @param shopInfoVo
     * @return
     */
    CommonResult<?> updateShop(ShopInfoVo shopInfoVo);

    /**
     * 查询全部商家
     * @return
     * @param pageInfoVo
     */
    CommonResult<?> queryAllShops(PageInfoVo pageInfoVo);

    /**
     * 通过学校查询店铺
     * @param bySchQueryVo
     * @return
     */

    CommonResult<?> queryShopsBySchool(BySchQueryVo bySchQueryVo);


}
